home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Examples by Joe Strout / Build Script.as
Text File  |  2001-01-30  |  465b  |  19 lines

  1. property kProjectFile : alias "MyProject.rb" -- replace with path to your file
  2.  
  3. on Build68k()
  4.     tell application "REALbasic 3.0 PPC"
  5.         activate -- (and launch, if not already launched!)
  6.         open kAutotestFile
  7.         set buildMac68k of document 1 to true
  8.         set buildMacPPC of document 1 to false
  9.         set buildWin32 of document 1 to false
  10.         set buildMacName of document 1 to "Autotest.68k"
  11.         build document 1
  12.         quit saving no
  13.     end tell
  14. end Build68k
  15.  
  16. on run
  17.     Build68k()
  18. end run
  19.